Translation:

3. When the Prophet disclosed a matter in confidence to one of his consorts and she then divulged it (to another) and Allah made it known to him he confirmed part thereof and repudiated a part. Then when he told her thereof she said "Who told thee this?" He said "He told me who knows and is well-acquainted (with all things)."

Notes (Tafseer)

5532. Who these two consorts were, and what was the matter in confidence which was disclosed, we are not expressly told, but the facts mentioned in n. 5529 above will help us to understand this passage. The sacred words imply that the matter was of great importance as to the principle involved, but that the details were not of sufficient importance for permanent record. For the lessons to be drawn, see the notes following.

5533. The moral we have to draw is manifold. (1) If anything is told us in confidence, especially by one at the head of affairs, we must not divulge it to our closest friend. (2) If such divulgence is made in the most secret whispers, Allah's Plan is such that it will come to light and expose those guilty of breach of confidence. (3) The breach of confidence must inevitably redound to the shame of the guilty party.